include ../../mk/Makefile.root.include
include ../../mk/Makefile.libs.include
HIDE=

CUR_PROJ_DIR	:= ..

PROJ_INC_PATHES +=	$(CUR_PROJ_DIR)

PROJ_INC_PATHES +=	$(GTEST_INC_PATH) 
PROJ_LIB_PATHES += 	$(GTEST_LIB_PATH)
PROJ_LIB_NAMES 	+=  $(GTEST_LIB_NAME)  pthread

PROJ_INC_PATHES +=	$(HELPER_INC_PATH) 
PROJ_LIB_PATHES += 	$(HELPER_LIB_PATH)
PROJ_LIB_NAMES 	+=  $(HELPER_LIB_NAME)

PROJ_CXXFLAGS += 


PROJ_CXX_SRC += $(wildcard $(CUR_PROJ_DIR)/*.cpp)
PROJ_CXX_SRC += $(wildcard $(CUR_PROJ_DIR)/memdb/*.cpp)
PROJ_CXX_SRC += $(wildcard $(CUR_PROJ_DIR)/memdb/impl/*.cpp)
PROJ_CXX_SRC += $(wildcard $(CUR_PROJ_DIR)/memdb/impl/mock/*.cpp)
PROJ_CXX_SRC += $(wildcard $(CUR_PROJ_DIR)/app/*.cpp)



all:$(TARGET_BIN) subdirs

this: $(TARGET_BIN)

$(TARGET_BIN):$(OBJS)
	$(DO_CPP_TARGET)

clean: subdirs.clean
	$(DO_CLEAN)
	rm -frv *.log

run: subdirs.run $(TARGET_BIN)
	$(DO_RUN_BIN)

subdirs:
	make -j4 -C ./impl/mock
	make -j4 -C ./impl/simple

subdirs.clean:
	make -C ./impl/mock clean
	make -C ./impl/simple clean

subdirs.run:
	make -C ./impl/mock run
	make -C ./impl/simple run

